//
// Created by 原帅 on 2022/10/9.
//

#ifndef R_REE_H
#define R_REE_H

#include <map>
#include "ReeProcIF.h"

class Ree {
public:
    static Ree& Inst() ;

private:
    Ree();

    int reefd;

    std::map<int,std::map<ReeProcType,ReeProcIF*>> mapReeProcs;

    long msec = 0;
public:
    int addResponder(int fd, ReeProcType type, ReeProcIF *procIf);

    int processEvent();
};


#endif //R_REE_H
